<?php htmlTemplate('index/header.tpl.php')?>
<script type="text/javascript">
function save(){
	var url = '<?php echo MVC_WWW_HOST?>user/saveuserinfo';
	var email = $.trim($("#email").val());
	var phone = $.trim($("#phone").val());
	var pwd = $.trim($("#pwd").val());
	var username = $.trim($("#username").val());
	var name = $.trim($("#name").val());
	var code = $.trim($("#code").val());
	var checkcode = $.trim($("#checkcode").val());
    $.post(url,{'email':email,'phone':phone,'pwd':pwd,'username':username, 'name':name,'code':code,'checkcode':checkcode},function(rs){
        amsg(rs);        
    })
}
</script>
<?php htmlTemplate('index/userleft.tpl.php')?>
        <div style="" class="lrtab">    
        <a href="<?php echo MVC_WWW_HOST?>user"   style="border-left: solid 1px #DFDFDF">基本信息</a>
        <a href="<?php echo MVC_WWW_HOST?>user/basicinfo" class="lrtabon" >个人资料</a>
        <a href="<?php echo MVC_WWW_HOST?>user/address">收货地址</a>
        <a href="<?php echo MVC_WWW_HOST?>user/bank">银行信息</a>
        </div>
        <div class="clear"></div>
        <div>
            <form onsubmit="save();return false;">
                <table style="width: 100%">
                    
                    <tr>
                        <td align="right">*昵称：</td>
                        <td><input type="text" name="username" id="username" class="logintext" tabindex="4" value="<?php echo $user['username'];?>"></td>
                        <td class="logintips">发布信息展示你的个性昵称。</td>
                    </tr>
                    <tr>
                        <td align="right">*设置密码：</td>
                        <td><input type="password"  name="pwd"  id="pwd" class="logintext" tabindex="3"></td>
                        <td class="logintips">此处留空为不修改密码。</td>
                    </tr>
            		<tr id="emr">
            			<td align="right" width="30%">邮箱：</td>
            			<td width="230"><input type="text"  name="email" id="email" class="logintext" tabindex="1" value="<?php echo $user['email'];?>" <?php if ($user['email']){?>disabled="disabled"<?php }?>></td>
            			<td class="logintips">邮箱可以做为登录帐号和找回密码用途。</td>
            		</tr>
            		<tr id="mbr">
            			<td align="right">手机号码：</td>
            			<td><input type="text"name="phone" id="phone" class="logintext" tabindex="2" value="<?php echo $user['phone'];?>" <?php if ($user['phone']){?>disabled="disabled"<?php }?>></td>
            			<td class="logintips">手机号可以做为登录帐号和找回密码用途。</td>
            		</tr>
                    
            		
            		<tr>
            			<td align="right">*姓名：</td>
            			<td><input type="text" name="name" id="name" class="logintext" tabindex="5" value="<?php echo $user['name'];?>" <?php if ($user['code']){?>disabled="disabled"<?php }?>></td>
            			<td class="logintips">用于认证用户信息，我们会严格保密。</td>
            		</tr>
            		<tr>
            			<td align="right">*身份证：</td>
            			<td><input type="text" name="code" id="code" class="logintext" tabindex="6" value="<?php echo $user['code'];?>" <?php if ($user['code']){?>disabled="disabled"<?php }?>></td>
            			<td class="logintips">用于认证用户信息，我们会严格保密。</td>
            		</tr>
                    <tr><td align="right">&nbsp;</td>
                        <td><input type="submit" value="确 认" class="regbtn" tabindex="8"></td><td class="logintips">&nbsp;</td>
                    </tr>
                </table>
            </form>
        </div>
<?php htmlTemplate('index/userfooter.tpl.php')?>
<?php htmlTemplate('index/footer.tpl.php')?>